package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Travel;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.TravelQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface TravelMapper {
    int insert(Travel record);

    Travel selectByPrimaryKey(Long id);

    List<Travel> selectForList(QueryObject qo);

    int updateByPrimaryKey(Travel record);

    void changeState(Travel travel);

    List<Travel> selectForfriendTravel(TravelQueryObject qo);

    Map<String,Object> selectEnshrineNumber(Long id);

    Integer selectEnshrineRelation(@Param("travelId") Long travelId, @Param("userId") Long userId);

    List<Travel> listTravelTitle(Long strategyId);

    List<Map<String,Object>> selectForcollectMe(Long id);

    void updateTravelRealation(Long id);

    List<Travel> selectMyEnshrine(TravelQueryObject qo);

    Map<String,Object> selectlikeMeTravel(Long id);

    List<Map<String,Object>> selectlikeMe(Long id);

    void updateTravelForLikeRealation(Long id);
}